all:thread_demo POSIX_demo

thread_demo: thread_demo.cc
	g++ -o $@ $^ -std=c++11 -lpthread

POSIX_demo: POSIX_demo.cc
	g++ -o $@ $^ -std=c++11 -lpthread

.PHONY: clean
clean:
	rm -f thread_demo POSIX_demo